# Maintainer: André Klitzing <aklitzing@gmail.com>
# Contributor: André Klitzing <aklitzing@gmail.com>
pkgname=toybox
pkgver=0.8.3
pkgrel=0
pkgdesc="A BSD-licensed alternative to busybox"
arch="all"
license="0BSD"
url="https://landley.net/toybox/"
depends="attr"
makedepends="bash linux-headers"
source="https://landley.net/toybox/downloads/toybox-$pkgver.tar.gz"

build() {
	scripts/genconfig.sh
	make defconfig
	make
}

check() {
	make test
}

package() {
	#chmod 755 toybox
	#make PREFIX="$pkgdir" install

	install -Dm755 toybox "$pkgdir"/bin/toybox
}

sha512sums="e2c5a22547cbd85bfee84c4aed3016895e4e0eba9b6f3dfc6cdfa0a0d59dfd74203a35389dcd0b2c557dd04eebbb051f9a458762af3abb32b473bd8924ed7b74  toybox-0.8.3.tar.gz"
